import { defineService } from '../../../../src/index'

export default defineService({
  // disabled: true,
  method: 'GET|POST',
  schema: {
    query: {
      name: { type: 'string', maxLength: 10, desc: '用户名', required: true },
      sex: { type: 'string', desc: '性别' },
    },
  },
  handler() {
    // const a = req.req.query.name
    // const b = req.req.params.age
    // const c = req.req.params.isMax

    this.send({ Q: this.query, P: this.params, D: this.body })
  },
})
